package com.bwie.controller;

import com.bwie.QueryVo;
import com.bwie.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/7/17 19:33
 * @Version 1.0
 */
@RestController
@RequestMapping("/dayOne/index")
@Slf4j
public class DayOneController {

    /**
     * 路径传参、json传参
     * @param pageNum
     * @param pageSize
     * @param queryVo
     * @return
     */
    @PostMapping("/getUserList/{pageNum}/{pageSize}")
    public R getUserList(@PathVariable("pageNum") Integer pageNum
            , @PathVariable("pageSize") Integer pageSize
            , @RequestBody @Validated QueryVo queryVo){
        //日志打印信息
      log.info("pageNum:"+pageNum);
      log.info("pageSize:"+pageSize);
      log.info("queryVo:"+queryVo);

      //返回数据
      return R.OK(queryVo);
    }

    

}
